﻿@inherits Statiq.Razor.StatiqRazorPage<IEnumerable<IDocument>>

@foreach (IDocument presentation in Model)
{
    <h3 id="@presentation.GetString(SiteKeys.Id)">
        @if (!String.IsNullOrEmpty(presentation.GetString(SiteKeys.Link)))
        {
            <a href="@presentation.GetString(SiteKeys.Link)">@presentation.GetString(WebKeys.Title)</a>
        }
        else
        {
            @presentation.GetString(WebKeys.Title)
        }
        @if (!String.IsNullOrEmpty(presentation.GetString(SiteKeys.Repo)))
        {
            
            <img src="https://img.shields.io/github/last-commit/@(presentation.GetString(SiteKeys.Repo)).svg?style=flat" alt="@presentation.GetString(WebKeys.Title)">
        }
        @* <a class="anchorjs-link " href="#aspnet-core-for-beginners-" aria-label="Anchor" data-anchorjs-icon="" style="font: 1em / 1 anchorjs-icons;
            padding-left: 0.375em;"></a> *@
    </h3>
    <p>
        @Html.Raw(await presentation.GetContentStringAsync())
    </p>
}